﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:simpleType name="DataRequest">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Blogs"></xs:enumeration>
            <xs:enumeration value="BlogsSummary"></xs:enumeration>
            <xs:enumeration value="Entries"></xs:enumeration>
            <xs:enumeration value="Categories"></xs:enumeration>
            <xs:enumeration value="Albums"></xs:enumeration>
            <xs:enumeration value="EntriesTags"></xs:enumeration>
            <xs:enumeration value="CurrentPageEntries"></xs:enumeration>
            <xs:enumeration value="LatestEntry"></xs:enumeration>
            <xs:enumeration value="RandomEntries"></xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:element name="Extension">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="DisplayName" type="xs:string" minOccurs="1" maxOccurs="1" />
                <xs:element name="ProviderUrl" type="xs:string" minOccurs="1" maxOccurs="1" />
                <xs:element name="FileName" type="xs:string"  minOccurs="1" maxOccurs="1"/>
                <xs:element name="AdminFileName" type="xs:string" minOccurs="0" maxOccurs="1" />
                <xs:element name="CustomConfiguration">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element maxOccurs="unbounded" name="Item">
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="key" type="xs:string" use="required" />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element name="DataRequest">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element maxOccurs="unbounded" name="Item" type="DataRequest" />
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>